home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / dviware / dvipage / makefonts < prev    next >
Text File  |  1992-05-11  |  558b  |  25 lines

  1. #! /bin/csh
  2. setenv NEW_DIR "$PWD"
  3. pushd /usr/lib/publisher
  4. foreach font_set ( `ls -d *pixels` )
  5.     pushd $font_set
  6.     foreach resolution_set ( screen xerox300 canon300 )
  7.         if ( -d $resolution_set ) then
  8.         pushd $resolution_set 
  9.         foreach resolution ( `ls -d dpi*` )
  10.             setenv DPI "`( echo $resolution | cut -c4- )`pk"
  11.             pushd $resolution
  12.             foreach font ( `ls *.pk` )
  13.                 setenv FONT_NAME "`basename $font pk`"
  14.                 setenv NEW_NAME "$NEW_DIR/$FONT_NAME$DPI"
  15.                 if ( -e $NEW_NAME == 0 ) ln $font $NEW_NAME
  16.             end
  17.             popd
  18.         end
  19.         popd
  20.         endif
  21.     end
  22.     popd
  23. end
  24. popd
  25.